<head>
    <script type="text/javascript" src="base64.js"></script>
    <script type="text/javascript" src="../config.js"></script>
    <script type="text/javascript">
        var auth = 'Basic ' + Base64.encode(Config.authUser + ':' + Config.authPassword);
        var link = "tetris.html" +
            "?endpoint=" + encodeURIComponent(Config.endpoint) +
            "&auth=" + encodeURIComponent(auth) + 
            "&actor=" + encodeURIComponent(JSON.stringify(Config.actor));

        function onLoad(){
            document.getElementById("launchLink").setAttribute('href',link);
        }
    </script>
</head>
<body onload="onLoad()">
    <a id="launchLink" href="">Launch</a>
</body>
